﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace MiniFox.Components
{
    /// <summary>
    /// 
    /// </summary>
    public sealed class ComponentBuilderCollection : KeyedCollection<Type, ComponentBuilder>
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        protected override Type GetKeyForItem(ComponentBuilder item)
        {
            return item.ContractType;
        }
    }

}
